//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CInputEvent.h>
///	@path	~/src/engine/xcore/
///	@date	2007/11/08
///	@desc	Input events.

#pragma once

#include "xeres.h"

#include "engine/runtime/IEvent.h"

namespace xeres {

	/*!
		\class	CInputEvent
		\brief	Input event base, for external user input event, such as key or mouse.
	*/
	class CInputEvent : public IEvent
	{
	public:

		/// \ctor
		CInputEvent( void );

		/// \dtor
		virtual ~CInputEvent( void );

		DECL_IOBJECT_CLASS( CInputEvent , IEvent );

	public:
		
	//@ interface

		/*!
			\brief		Active event.
		*/
		virtual void Active( void * eventParam );

		/*!
			\brief		Called when the event is not handled.
		*/
		virtual void OnUnhandled( void * eventParam );

	private:

	//@ data
	};

} // namespace xeres
